class CreateEmployees < ActiveRecord::Migration[5.1]
  def change
    create_table :employees do |t|
      t.string :emp_code, limit: 10, null: false, comment: '员工编号', index: true
      t.string :emp_name_cn, limit: 20, null: false, comment: '员工中文名'
      t.integer :is_delete, default: 0, null: false, comment: '是否删除 1-删除 0-未删除'

      t.timestamps
    end
  end
end
